import Vue from 'vue'
import 'normalize.css/normalize.css'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss' 
import App from './App'
import router from './router'
import store from './store'
import './config'
import i18n from './lang' 
import './icons' 
import * as filters from './filters' 
import waves from '@/directive/waves'
import BaiduMap from 'vue-baidu-map'; // baidu
Vue.use(BaiduMap, {
  ak: '6qYFKfzKEuzkT5QgSuGnPRQHDLGUhFkh'
})

Vue.use(Element, {
  size: 'mini', 
  i18n: (key, value) => i18n.t(key, value)
})

Vue.directive('waves', waves)

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

Vue.config.productionTip = false
Vue.prototype.$uploadUrl = 'https://beautisharebed.dlc-sz.com/'

new Vue({
  el: '#app',
  router,
  store,
  i18n,
  template: '<App/>',
  components: { App }
})
